public void Setup() { rentals = Substitute.For <IRentals>(); sut = new VideoStore(rentals); TestMovie = new Movie("Transporter", MovieGenre.Action); TestCustomer = new Customer("1978-06-14", "Olle Svensson"); }
public void Setup() { dateTime = Substitute.For <IDateTime>(); dateTime.Now().Returns(DateTime.Now); sut = new Rentals(dateTime); TestMovie = new Movie("Transporter", MovieGenre.Action); TestCustomer = new Customer("1978-06-14", "Olle Svensson"); }
public void SetUp() { rentals = Substitute.For <Rentals>(Substitute.For <IDateTime>()); sut = new RealVideoStore(rentals); movie = new Movie { Title = "Rambo", Year = 2001, Genre = "P**n" }; }
public void Setup() { rentals = Substitute.For <IRentals>(); dateStub = Substitute.For <IDateTime>(); sut = new VideoStore(rentals); movie1 = new Movies() { Id = 0, Title = "Kalle Anka", Genre = "Animation" }; NotitleOnMovie = new Movies() { Id = 0, Title = "", Genre = "Comedy" }; customer1 = new Customer() { FirstName = "KallePer", movies = movie1, SSN = "1994-12-05" }; }
public VideoStore(IRentals iRentals, IDateTime iDateTime) { this._iRentals = iRentals; this._iDateTime = iDateTime; }
public RealVideoStore(IRentals rentals) { Rentals = rentals; Customers = new List <Customer>(); Movies = new Dictionary <string, List <Movie> >(); }
public void SetUp() { rentals = Substitute.For <Rentals>(); sut = new VideoStoreClass(rentals); }
public void Setup() { rentals = Substitute.For <IRentals>(); datetime = Substitute.For <IDateTime>(); sut = new RentedMovies(datetime); }
public void Setup() { sut = new Rentals(); }
public void SetUp() { rentalMock = Substitute.For <IRentals>(); iDateTime = Substitute.For <IDateTime>(); sut = new VideoStore(rentalMock, iDateTime); }
public VideoStoreClass(IRentals rentals) { movies = new List <Movie>(); customers = new List <Customer>(); this.rentals = rentals; }
public VideoStore(IRentals Ir) { Rentals = Ir; Stock = new List <Movie>(); Customers = new List <Customer>(); }
public BookController(IBookService bookService, IRentals rentals) { _bookService = bookService; _rentals = rentals; }
public VideoStore(IRentals _rentals) { rentals = _rentals; }
public VideoStore(IRentals rentals) { this.Rentals = rentals; }
public SUTVideoStoreConsole(IVideoStore _videoStore, IRentals _rentals) { this._videoStore = _videoStore; this._rentals = _rentals; }
public void Setup() { dateTime = Substitute.For <IDateTime>(); dateTime.Now().Returns(DateTime.Now); sut = new Rentals(dateTime); }