Example #1
0
        public void CreateMakerSpace_Valid()
        {
            //Arrange
            MakerSpaceCreateDto mySpace = new MakerSpaceCreateDto
            {
                MakerSpaceName = "BestName",
                ZipCode        = "2700",
                StreetName     = "Group5Street",
                StreetNumber   = "5",
                City           = "FiveCity"
            };

            //Act
            var result = _service.CreateMakerSpace(mySpace);

            //Assert
            result.Should().BeEquivalentTo(mySpace);
        }
        public void CreateMakerSpace_Valid()
        {
            //Arrange
            MakerSpaceCreateDto mySpace = new MakerSpaceCreateDto
            {
                MakerSpaceName = "BestName",
                ZipCode        = "2700",
                StreetName     = "Group5Street",
                StreetNumber   = "5",
                City           = "FiveCity"
            };

            //Act
            var result = _service.CreateMakerSpace(mySpace);

            //Assert
            Assert.Equal(mySpace.MakerSpaceName, result.MakerSpaceName);
            Assert.Equal(mySpace.ZipCode, result.ZipCode);
            Assert.Equal(mySpace.StreetName, result.StreetName);
            Assert.Equal(mySpace.StreetNumber, result.StreetNumber);
            Assert.Equal(mySpace.City, result.City);
        }