public void Get_Sections_Return_List_Of_Value() { //Arrange var testValue = new SectionViewModel(); var testReturnValue = new List <SectionViewModel>(); var httpClientFactoryMock = Substitute.For <IHttpClientFactory>(); var serviceBase = Substitute.For <ServiceBase>(httpClientFactoryMock, Clients.SectionClient); SectionService service = new SectionService(httpClientFactoryMock); //Act var expected = service.CreateNewSection(testValue); //Assert Assert.Equal(expected, testReturnValue); }