chino
chino
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
for things like installations/game stuff
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
i have like 2389238283 emails
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
glad i use a dummy email when practicing stuff
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
just to be safee
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
guess i should switch
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
damn
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
yes
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
thanks again!
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
searching for answers
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
been stuck on this for days
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
it's all clearer to me now
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
thanks a lot man
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
the interface is like this
using ASPMVCNETCRUD.Models;

namespace ASPMVCNETCRUD.Repository
{
public interface IEmployeeRepository
{


Task<IEnumerable<EmployeeDetails>> GetEmployeeRecords();
Task<EmployeeDetails?> GetEmployeeDetails(int id);
Task<bool> EditEmployeeDetails(Employee Employee);
Task<bool> CreateNewEmployee(Employee employee);
Task<bool> DeleteEmployee(int? id);

Task<Employee?> edit_GetEmployeeDetails(int? id);



}
}
using ASPMVCNETCRUD.Models;

namespace ASPMVCNETCRUD.Repository
{
public interface IEmployeeRepository
{


Task<IEnumerable<EmployeeDetails>> GetEmployeeRecords();
Task<EmployeeDetails?> GetEmployeeDetails(int id);
Task<bool> EditEmployeeDetails(Employee Employee);
Task<bool> CreateNewEmployee(Employee employee);
Task<bool> DeleteEmployee(int? id);

Task<Employee?> edit_GetEmployeeDetails(int? id);



}
}
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
it looks like this
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
yes my EmployeeRepository does implement an interface
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
feels bad skipping it over catsweat
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
but i still somehow wanna learn mocking first before i hop on to another topic
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
you're right, i came across in-memory db upon searching for solutions for this problem and it seemed to be the best option for me
38 replies
CC#
Created by chino on 8/30/2023 in #help
✅ System.NullReferenceException : Object reference not set to an instance of an object.
does this mean im mocking the wrong method?
38 replies