public void CreateMethod() { // preparation var cosmos = new Mock.CosmosMock(); var notification = new Mock.NotificationServiceMock(); var logger = new Mock.LoggerMock <UserApi>(); var userApi = new UserApi(cosmos, notification, logger); }
public void CreateMethod() { // preparation var notification = new Mock.NotificationServiceMock(); var validation = new Mock.ValidationUserServiceMock(); var logger = new Mock.LoggerMock <UserApi>(); var userApi = new UserApi(notification, validation, logger); }
public void CreateMethod() { // preparation var userRepo = new Mock <IUserRepository>(); var notification = new Mock.NotificationServiceMock(); var infection = new Mock.InfectionServiceMock(); var validation = new Mock.ValidationUserServiceMock(); var logger = new Mock.LoggerMock <UserApi>(); var userApi = new UserApi(userRepo.Object, notification, infection, validation, logger); }
public void RunMethod() { // preparation var cosmos = new Mock.CosmosMock(); var notification = new Mock.NotificationServiceMock(); var logger = new Mock.LoggerMock <UserApi>(); var userApi = new UserApi(cosmos, notification, logger); var context = new Mock.HttpContextMock(); // action userApi.Run(context.Request); // assert }
public void RunMethod(string userUuid) { // preparation var notification = new Mock.NotificationServiceMock(); var validation = new Mock.ValidationUserServiceMock(); var logger = new Mock.LoggerMock <UserApi>(); var userApi = new UserApi(notification, validation, logger); var context = new Mock.HttpContextMock(); // action userApi.Run(context.Request, userUuid); // assert }
public void RunMethod(string userUuid, string userMajor, string userMinor) { // preparation var userRepo = new Mock <IUserRepository>(); var notification = new Mock.NotificationServiceMock(); var infection = new Mock.InfectionServiceMock(); var validation = new Mock.ValidationUserServiceMock(); var logger = new Mock.LoggerMock <UserApi>(); var userApi = new UserApi(userRepo.Object, notification, infection, validation, logger); var context = new Mock.HttpContextMock(); // action userApi.Run(context.Request, userUuid, userMajor, userMinor); // assert }