public void LogoutSuccess() { mockService.Setup(_ => _.Logout()).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.Logout(); Assert.NotNull(result); }
public void DeleteSuccess() { mockService.Setup(_ => _.Delete(It.IsAny <string>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.Delete("2e173ee3-be45-46bd-a355-c9182a2a41ec"); Assert.NotNull(result); }
public void GetAWSUploadKeySuccess() { mockService.Setup(_ => _.GetAWSUploadKey()).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.GetAWSUploadKey(); Assert.NotNull(result); }
public void RetriveSuccess() { mockService.Setup(_ => _.Retrieve(It.IsAny <string>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.Retrieve(Guid.NewGuid().ToString()); Assert.NotNull(result); }
public void CreateStorageSuccess() { mockService.Setup(_ => _.Add(It.IsAny <AddStorageParameter>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.Add(StorageMockParameter.CreateValidStorageParameter()); Assert.NotNull(result); }
public void UpdateSuccess() { mockService.Setup(_ => _.Update(It.IsAny <UpdateEntityParameter>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.Update(EntityMockParameter.UpdateValidEntityParameter()); Assert.NotNull(result); }
public void ChangePasswordSuccess() { mockService.Setup(_ => _.ChangePassword(It.IsAny <ChangePasswordParameter>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.ChangePassword(UserMockParamter.ChangePasswordParameter()); Assert.NotNull(result); }
public void StartSuccess() { mockService.Setup(_ => _.StartFeed(It.IsAny <StartFeedParameter>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.StartFeed(new StartFeedParameter()); Assert.NotNull(result); }
public void RetrieveSuccess() { mockService.Setup(_ => _.Retrieve(It.IsAny <GetLiveParameter>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.Retrieve(new GetLiveParameter()); Assert.NotNull(result); }
public void CreatSuccess() { mockService.Setup(_ => _.Create(It.IsAny <CreateLiveParameter>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.Create(LiveMockParameter.CreateLiveParameter()); Assert.NotNull(result); }
public void DeleteCategoryRelationSuccess() { mockService.Setup(_ => _.DeleteRelation(It.IsAny <CategoryRelationParameter>())).Returns(BaseMockResponse.SuccessResponse()); var result = mockService.Object.DeleteRelation(CategoryMockParameter.CreateValidCategoryRelationParameter()); Assert.NotNull(result); }