public IEndpointPersistence SearchBySerialNumber() { var endpoint = ModelsMock.EndpointMock(); var endpointPersistence = new Mock <IEndpointPersistence>(); endpointPersistence.Setup(x => x.SearchBySerialNumber(endpoint.SerialNumber)).Returns(endpoint); return(endpointPersistence.Object); }
public IEndpointPersistence CreateEndpoint() { var endpoint = ModelsMock.EndpointMock(); var endpointPersistence = new Mock <IEndpointPersistence>(); endpointPersistence.Setup(x => x.CreateEndpoint(endpoint)); return(endpointPersistence.Object); }